home *** CD-ROM | disk | FTP | other *** search
/ Business Assistant / Business Assistant.iso / acctg / tx40e / io.doc < prev    next >
Text File  |  1988-07-22  |  2KB  |  26 lines

  1. -- I/O CONTROL
  2.  
  3.      You may want the ability to send special character strings to the printer 
  4. or communications ports.  Why?  Perhaps you want to place your printer into 
  5. letter-quality or draft mode at the touch of a few keys.  Or maybe you'd like 
  6. to send a telephone number out the communications port.
  7.  
  8.      A file containing I/O instructions must have the extension, ".I-O".  As 
  9. with any other file used by Nifty, an "I-O" file's first 24 lines contain the 
  10. screen that will be presented to the user.  The next 1 to 48 lines contain in-
  11. structions.  Each instruction line, limited to 30 characters, must begin with 
  12. the letter or number that will cause the I/O action described on the line to 
  13. take place.  The letter or number will be followed by "=" and the string to be 
  14. sent to an I/O port.  Finally, the line must contain ">" and the name of a val-
  15. id I/O device (CON, LPT1, LPT2, LPT3, COM1, or COM2).  A carriage return may be 
  16. indicated by "<", while "~" tells Nifty to pause for 1/2-second.  Examples:
  17.  
  18.                                1=HELLO>CON
  19.                                2=HELLO<>LPT1
  20.                                3=HELLO~BUDDY>COM1
  21.  
  22. The first line instructs Nifty to send "HELLO" to the CON device when the "1" 
  23. key is pressed.  The second line sends "HELLO" and a carriage return to the 
  24. printer at the LPT1 port when "2" is pressed.  The third line sends "HELLO", a 
  25. 1/2-second pause, and "BUDDY" to the COM1 port when "3" is pressed.
  26.